NMMEN=RS_485_EIA_485_NORMA, OINV=LOW, RXDIS=THE_RECEIVER_IS_ENAB, DCTRL=DISABLE_AUTO_DIRECTI, SEL=RTS, AADEN=AUTO_ADDRESS_DETECT_
RS-485/EIA-485 Control. Contains controls to configure various aspects of RS-485/EIA-485 modes.
NMMEN | NMM enable. 0 (RS_485_EIA_485_NORMA): RS-485/EIA-485 Normal Multidrop Mode (NMM) is disabled. 1 (RS_485_EIA_485_NORMA): RS-485/EIA-485 Normal Multidrop Mode (NMM) is enabled. In this mode, an address is detected when a received byte causes the USART to set the parity error and generate an interrupt. |
RXDIS | Receiver enable. 0 (THE_RECEIVER_IS_ENAB): The receiver is enabled. 1 (THE_RECEIVER_IS_DISA): The receiver is disabled. |
AADEN | AAD enable. 0 (AUTO_ADDRESS_DETECT_): Auto Address Detect (AAD) is disabled. 1 (AUTO_ADDRESS_DETECT_): Auto Address Detect (AAD) is enabled. |
SEL | Select direction control pin 0 (RTS): If direction control is enabled (bit DCTRL = 1), pin RTS is used for direction control. 1 (DTR): If direction control is enabled (bit DCTRL = 1), pin DTR is used for direction control. |
DCTRL | Auto direction control enable. 0 (DISABLE_AUTO_DIRECTI): Disable Auto Direction Control. 1 (ENABLE_AUTO_DIRECTIO): Enable Auto Direction Control. |
OINV | Polarity control. This bit reverses the polarity of the direction control signal on the RTS (or DTR) pin. 0 (LOW): The direction control pin will be driven to logic 0 when the transmitter has data to be sent. It will be driven to logic 1 after the last bit of data has been transmitted. 1 (HIGH): The direction control pin will be driven to logic 1 when the transmitter has data to be sent. It will be driven to logic 0 after the last bit of data has been transmitted. |
RESERVED | Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. |